﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserAdd.ascx.cs" Inherits="Admin_Users_UserAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>

<div class="tab_content">                                       
    <div class="formEl_b">	           
        <fieldset>

            <div class="section">
                 <asp:Label runat="server" ID="lblUsername"></asp:Label>
                <asp:TextBox ID ="txtUserName" runat ="server" MaxLength ="32" CssClass="medium" ValidationGroup="Input"></asp:TextBox><small class="note">*</small>       
            </div>
            
            <div class="section">
                <asp:Label ID="lblEmail" runat ="server"> </asp:Label>
                <asp:TextBox ID ="txtEmail" runat ="server" MaxLength ="50" CssClass="medium" ValidationGroup="Input"></asp:TextBox><small class="note">*</small>      
            </div>  
            
             <div class="section">
                <asp:Label ID="lblRole" runat ="server"></asp:Label>
                <asp:DropDownList ID="ddlRole" runat="server"></asp:DropDownList>
            </div>

            <div class="section">
                <asp:Label ID="lblPassword" runat ="server"></asp:Label>
                <asp:TextBox ID ="txtPassword" runat ="server"  Text ="" MaxLength ="32" TextMode ="Password" CssClass="medium" ValidationGroup="Input"></asp:TextBox> 
            </div>

            <div class="section">
                <asp:Label ID="lblConfirmPassword" runat ="server"></asp:Label>
                <asp:TextBox ID ="txtConfirmPassword" runat ="server" Text ="" MaxLength ="32" TextMode ="Password" CssClass="medium"></asp:TextBox>
            </div>
            <div class="section-check">
                <ul>

                    <li>
                        
                        <input type="checkbox"  id="chkActive"  class="ck" runat="server" checked="checked"/>
                        <asp:Label ID="lbleActive" runat="server" Text="Label" CssClass="text-lbl"></asp:Label>
                    </li>
                </ul>
                                     
            </div>
            <div class="clear"></div>
            <br />
            <div class="section">
                <span>&nbsp;</span>
                <asp:LinkButton ID="btnSave" runat="server"  CssClass="uibutton " onclick="btnSave_Click1" ValidationGroup="Input"></asp:LinkButton> 
                <asp:LinkButton ID="btnCancel" runat="server" CssClass="uibutton special" onclick="btnCancel_Click"></asp:LinkButton> 
            </div>
        </fieldset>
    </div>
</div>


<!--Validator Empty-->
<asp:RequiredFieldValidator ID="rfvUsername" runat="server" SetFocusOnError="true"   ControlToValidate="txtUserName" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvEmail" runat="server" SetFocusOnError="true"   ControlToValidate="txtEmail" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvPassword" runat="server" SetFocusOnError="true"   ControlToValidate="txtPassword" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<!--Check email-->
 <asp:RegularExpressionValidator 
            ID="revEmail" 
            runat="server" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="txtEmail" 
            Display="None" 
            ValidationGroup="Input" 
            SetFocusOnError="True" 
            Text="*">
</asp:RegularExpressionValidator>

 <asp:RegularExpressionValidator 
            ID="revPassword" 
            runat="server" 
            ValidationExpression="\S+" 
            ControlToValidate="txtPassword" 
            Display="None" 
            ValidationGroup="Input" 
            SetFocusOnError="True" 
            Text="*">
</asp:RegularExpressionValidator>

<asp:CompareValidator ID="cpvPassword" runat="server"  ControlToValidate="txtPassword"
 Operator="Equal" Type="String"
 ControlToCompare="txtConfirmPassword" ValidationGroup="Input" ForeColor="White" Display="None" SetFocusOnError="true"></asp:CompareValidator>
  <asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />
